package com.zHan.system.service;


import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.IService;
import com.zHan.model.dto.AssginPostDto;
import com.zHan.model.dto.SysPostQueryDto;
import com.zHan.model.system.SysPost;

import java.util.List;
import java.util.Map;

/**
 * <p>
 * 岗位信息表 服务类
 * </p>
 *
 * @author zHan
 * @since 2023-06-24
 */
public interface ISysPostService extends IService<SysPost> {
    Page<SysPost> selectPageQuery(Long page, Long pageSize, SysPostQueryDto postQueryVo);

    boolean updateStatus(Long id, Integer status);

    boolean assignPostToUser(AssginPostDto assginPostDto);

    Map<String, Object> selectPostsByUserId(String userId);

    boolean removePostById(Long id);

    boolean removePostByIds(List<Long> idList);
}
